home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / bluej / bluejsetup-203.exe / {app} / lib / spanish / templates / newclass / README < prev    next >
Text File  |  2004-12-19  |  2KB  |  41 lines

  1. README - <bluej-home>/lib/<language>/templates/newclass/README
  2. --------------------------------------------------------------
  3.  
  4. This directory contains class templates for BlueJ.
  5.  
  6. These class templates appear as choices in the "New Class" dialogue in the
  7. BlueJ environment.
  8.  
  9.  
  10. Changing templates
  11. ------------------
  12. Templates can easily be changed by editing these files.
  13.  
  14.  
  15. Adding new templates
  16. --------------------
  17. To add a template, create a new file in this directory with a ".tmpl"
  18. suffix (for example "mainclass.tmpl").
  19.  
  20. Names for applets, interfaces or abstract classes should start with 
  21. "applet", "interface" or "abstract", respectively. Everything else will be 
  22. treated as a standard class.
  23.  
  24. By default, this template will be listed in the New Class dialogue at the
  25. end of the selection list with the base of its filename ("mainclass").
  26.  
  27. The name appearing in the dialogue may be defined by defining a property
  28. "pkgmgr.newClass.<template-name>" in the labels file (the labels file
  29. is at <bluej-home>/lib/<language>/labels). For example, defining
  30.  
  31.    pkgmgr.newClass.mainclass=Class with Main
  32.  
  33. will result in "Class with Main" appearing in the dialogue for our new 
  34. choice.
  35.  
  36. The position in the list may be specified by adding this new template to
  37. the list specified in the "bluej.classTemplates" property in the BlueJ
  38. definitions file (<bluej-home>/lib/bluej.defs). All templates listed here
  39. will appear in the specified order, other templates in this directory will
  40. be appended to the list in random order.
  41.